<template lang="pug">
  kalix-search(title="成绩查询" v-bind:searchFields="searchFields")
</template>

<script type="text/ecmascript-6">
  import {ScoreQuerySubjectURL} from '../config.toml'

  export default {
    name: 'ScoreSearch',
    data() {
      return {
        searchFields: [
          {label: '考试名称', prop: 'name'},
          {
            label: '报考科目',
            prop: 'id',
            type: 'select2',
            optionLabel: 'text',
            optionValue: 'id',
            fieldName: 'text',
            optionsUrl: ScoreQuerySubjectURL
          }
        ]
      }
    }
  }
</script>

<style scoped lang="stylus" type="text/stylus">
</style>
